package routers

import (
	"exp1/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/login", &controllers.Exp1Controller{}, "post:Login")               //登录验证
	beego.Router("/roleNodeAdd", &controllers.Exp1Controller{}, "post:RoleNodeAdd")   //角色-权限 添加
	beego.Router("/userRole", &controllers.Exp1Controller{}, "post:UserRole")         //用户-角色 查询
	beego.Router("/roleNodeList", &controllers.Exp1Controller{}, "post:RoleNodeList") //角色-权限 查询
	beego.Router("/compAdd", &controllers.Exp1Controller{}, "post:CompAdd")           //物流公司 添加
	beego.Router("/ordersAdd", &controllers.Exp1Controller{}, "post:OrdersAdd")       //快递订单 添加
	beego.Router("/ordersList", &controllers.Exp1Controller{}, "get:OrdersList")      //快递单-物流公司-物流类型 查询
	beego.Router("/details", &controllers.Exp1Controller{}, "get:Details")            //订单详情表
}
